package org.springframework.study.ioc.xml;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class IocApp {
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("ioc/${spring_config_name}.xml");
		UserService userService = context.getBean(UserService.class);
		String name = userService.getNameById(1L);
		System.out.println(name);
	}
}
